package com.uniview.enums;

public enum EActiveType {
	
	拜访(1), 交流(2), 简餐(3), 其它(4);
	
	private int val = 1;
	
	private EActiveType(int val) {
		this.val = val;
	}
	
	public int toVal () {
		return val;
	}
	
	public static EActiveType getActiveType (int val) {
		if (val == 拜访.toVal()){
			return 拜访;
		} else if (val == 交流.toVal()) {
			return 交流;
		} else if (val == 简餐.toVal()) {
			return 简餐;
		} else {
			return 其它;
		}
	}
}
